(ns hello-ring.core
    (:use [org.httpkit.server :only [run-server]]
          [ring.util.response :only [response]]))

(defn handler [request]
  (response "hello world: updated\n"))

;(defn handler [request]
;    {:status 200
;     :header {"Content-Type" "text/html"}
;     :body "hello world\n"})

(defn -main [& args]
    (println "Start Hello Ring Demo")
    (run-server handler {:port 5000})
    (println "Start Http-Kit Server on port 5000 ..."))
